package com.zcl.javaClassAndObject.inheritance;

/**
 * @Description:
 * @author: zcl
 * @date: 2021/12/9  13:45
 */
public class Rock {



    Rock(){
        System.out.println("this is a simple constructor");
    }

    Rock(Double i){
        System.out.println("这是double类型" + i);
    }

    Rock(int i){
//        System.out.println("this is number"+ i+ "constructor");
        System.out.println("这是int类型" + i);
    }



}

